import { http } from "@/utils/http";

export type AdminInfo = {
  manageId: number;
  managerPhone: string;
  level: number;
  managerAccoent: string;
  managerPassword: string;
};

export type GetAdminResult = {
  list: Array<AdminInfo>;
  total: number;
};

/** 获取管理员信息 */
export const getAdmin = (params?: object) => {
  return http.request<GetAdminResult>("get", "/api/manager/view/manager", {
    params
  });
};
